\name{checkADopts}
\alias{checkADopts}
\title{ Check ADMB Options for Path Integrity}
\description{
  Check that \code{.PBSadmb} has all required components and
  that paths point to actual files on the hard drive.
}
\usage{
checkADopts(opts=getOptions(atcall(.PBSadmb)),
   check=c("admbpath","gccpath","editor"), warn=TRUE, popup=FALSE)
}
\arguments{
  \item{opts}{ADMB options values.}
  \item{check}{components of \code{.PBSadmb} to check.}
  \item{warn}{logical: if \code{TRUE}, print the results of the check to the R console.}
  \item{popup}{logical: if \code{TRUE}, display program location problems in a popup GUI.}
}
\value{
  Boolean value where \code{TRUE} indicates all programs were located in the 
  specified directories and \code{FALSE} if at least one program cannot be found.
  The returned Boolean scalar has two attributes: \cr
  \code{warn} -- named list of test results, and \cr
  \code{message} -- named vector of test results.
}
\author{Rowan Haigh, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC}
\note{
  A wrapper function that can be called from a GUI exists as \code{.win.checkADopts}.
}
\seealso{ \code{\link[PBSadmb]{setADMBpath}},\code{\link[PBSadmb]{readADopts}} }
\keyword{ data }
\keyword{ list }
